package com.example.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value="article")
public class Article {

    @TableId(value="id",type= IdType.AUTO)
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer categoryId;
    private Integer viewCount;
    private Integer likeCount;
    private Integer commentCount;
    //private Integer status;  // 0-发布 1-草稿
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
}
